﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPage_MasterPageC : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btGotoPage_Click(object sender, EventArgs e)
    {
        if (this.txtGotoPage.Text.Trim().Length == 0)
        {
            this.txtGotoPage.Text = "请输入单据号!";
            return;
        }

        long bugNo;
        long.TryParse(this.txtGotoPage.Text, out bugNo);
        if (bugNo > 0)
        {
            string gotoPage = string.Format("../BMS/ShowBug.aspx?B={0}", this.txtGotoPage.Text.Trim());
            string scr = string.Format("<script language='javascript' type='text/javascript'>window.open('{0}');</script>", gotoPage);
            Response.Write(scr);
        }
        else
        {
            this.txtGotoPage.Text = "必须是数字！";
        }
    }
}
